<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .box{
            width: 360px;
            height: 450px;
            background-color: #fbe7d2;
            border-radius: 20px;
            border: 5px solid #e7be80;
            padding: 10px;
        }
        .wenzi{
            height: 80px;
            border-bottom: 5px solid #e7be80;
            text-align: center;
        }
        .wz1{
            font-size: 24px;
            font-weight: bold;
            color: #b36226;
           
        }
        .wz2{
            font-size: 14px;
            color: #b36226;
           margin-top: 10px;
        }
        .wz2 span{
            font-size: 18px;
            color: #eab645;  
        }
        .hang{
            height: 80px;
            border-radius: 20px;
            background-color: #ffffff;
            margin-top: 10px;
            padding: 0 5px;
        }
        img{
            width: 100%;
            vertical-align: middle;
        }
        .xia{
            font-size: 12px;
        }
        .tu{
            float: left;
            margin-top: 10px;
            width: 60px;
        
        }
        .zi{
            float: left;
            margin-top: 18px; 
        }
        button{
            width: 60px;
            height: 30px;
            border: 2px solid #ab6825;
            border-radius: 30px;
            background-color: #f3b248; 
            color: #c05c23;
        }
        .an{
            float: right;
            margin-top: 22px;
          
        }
    </style>

</head>

<body>
    <div class="box" id="box">
        <div class="wenzi">
            <div class="wz1">任务列表</div>
            <div class="wz2">每完成一个任务,即可获得<span>10MB~1GB</span> 流量哦!</div>
        </div>
        <div class="hang" v-for="(item,index) in list" v-bind:key="index">
            <div class="tu">
                <img v-bind:src="item.pic" alt="">
            </div>
            <div class="zi">
                <div class="shang">{{item.name}}</div>
                <div class="xia">{{item.desc}}</div>
            </div>
            <div class="an">
                <button>{{item.status==1?'去完成':(item.status==2?'领取':'已领取')}}</button>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
var v=new Vue({
    el:'#box',
    data:{
        list:[
            {id:1,pic:'images/IMG_1144_03.gif',name:'咪咕视频送流量',desc:'来嗥咕视频,每月领500MB流量奖励',status:1},
            {id:1,pic:'images/IMG_1144_06.gif',name:'和彩云送福利',desc:'免费领100G空间+月月2GB',status:2},
            {id:1,pic:'images/IMG_1144_08.gif',name:'最高40元套餐折扣券',desc:'参与抽奖，奖励10MB，经验值+10',status:3},
            {id:1,pic:'images/IMG_1144_10.gif',name:'吃喝玩乐季，超级秒杀秒杀',desc:'进入隐藏二楼参与秒杀，奖励10MB，经验',status:3}
        ]
    },
    computed:{},
    watch:{},
    methods:{},
    filters:{},
    directives:{},
    component:{}
})
</script>